package com.maple.service;

import com.maple.mapper.AccountMapper;
import com.maple.model.Account;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * @author maple 2018.09.23 上午11:25
 */
@Service
@Transactional(rollbackFor = Throwable.class)
public class AccountService {
    private Logger logger = LoggerFactory.getLogger(getClass());


    @Autowired
    private AccountMapper accountMapper;

    public Account findAccountByName(String name) {

        return accountMapper.getAccountByName(name);
    }
}
